﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ekton_Manage_InfrastructureCore.Common
{
    public class QueryDataParame
    {
        /// <summary>
        /// 页面索引
        /// </summary>
        [Required, Range(1, int.MaxValue, ErrorMessage = "页面索引的值必须大于0")]
        public int pageIndex { get; set; }
        /// <summary>
        /// 页面大小
        /// </summary>
        /// 
        [Required, Range(1, int.MaxValue, ErrorMessage = "页面大小的值必须大于0")]
        public int pageSize { get; set; }
        /// <summary>
        /// 查询参数
        /// </summary>
        public string parame { get; set; }
        /// <summary>
        /// 排序类型  asc 或 desc
        /// </summary>
        public string sortType { get; set; }
        /// <summary>
        /// 排序的字段
        /// </summary>
        public string sortField { get; set; }

    }
}
